<?php /*a:3:{s:50:"D:\phpstudy_pro\WWW\tp\view\index\Index\index.html";i:1627638543;s:50:"D:\phpstudy_pro\WWW\tp\view\index\Include\top.html";i:1628047300;s:51:"D:\phpstudy_pro\WWW\tp\view\index\Include\left.html";i:1627639135;}*/ ?>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
		<title>Index/index</title>

		<!-- Favicon -->
		<link rel="shortcut icon" type="image/x-icon" href="/static/index/assets/img/favicon.png">

		<!-- Bootstrap CSS -->
		<link rel="stylesheet" href="/static/index/assets/css/bootstrap.min.css">

		<!-- Fontawesome CSS --> 
		<link rel="stylesheet" href="/static/index/assets/plugins/fontawesome/css/fontawesome.min.css">
		<link rel="stylesheet" href="/static/index/assets/plugins/fontawesome/css/all.min.css">

		<!-- calendar CSS -->
		<link rel="stylesheet" href="/static/index/assets/plugins/simple-calendar/simple-calendar.css">

		<!-- Feathericon CSS -->
		<link rel="stylesheet" href="/static/index/assets/css/feather.css">

		<!-- Main CSS -->
		<link rel="stylesheet" href="/static/index/assets/css/style.css">
	</head>
	<body>
		<!-- Main Wrapper -->
		<div class="main-wrapper">
			<!-- Header -->
			<div class="header">
  <!-- Logo -->
  <div class="header-left">
    <a href="index.html" class="logo"></a>
    <a href="index.html" class="logo logo-small"></a>
  </div>
  <!-- /Logo -->
  <a href="javascript:void(0);" id="toggle_btn">
    <i class="fas fa-bars"></i>
  </a>

  <!-- Mobile Menu Toggle -->
  <a class="mobile_btn" id="mobile_btn"><i class="fas fa-bars"></i>
  </a>
  <!-- /Mobile Menu Toggle -->
  <!-- Header Right Menu -->
  <ul class="nav user-menu">
    <li class="nav-item dropdown has-arrow main-drop ml-md-3" style="margin: 0 5em 0 0;">
      <a href="#" class="dropdown-toggle nav-link" data-toggle="dropdown">
							<span class="user-img"><img src="/static/index/assets/img/avatar.jpg" alt="">
							<span class="status online"></span></span>
      </a>
      <div class="dropdown-menu">
        <a class="dropdown-item" href="/index/login/loginout"><i class="feather-power"></i>退出</a>
      </div>
    </li>
  </ul>
  <!-- /Header Right Menu -->
</div>
			<!-- /Header -->

			<!-- Sidebar -->
			<div class="sidebar" id="sidebar">
  <div class="sidebar-inner slimscroll">
    <div id="sidebar-menu" class="sidebar-menu">
      <ul>
        <li class="menu-title">	<span>Main</span>
        </li>
        <li class="active">	<a href="/index/Index/index.html"><i class="feather-home"></i><span class="shape1"></span><span class="shape2"></span><span>导游信息</span></a>
        </li>
        <li><a href="/index/User/index.html"><i class="feather-user"></i> <span>管理员信息</span></a>
        </li>
        <li><a href="/index/Select/form1.html"><i class="feather-list"></i> <span>条件搜索</span></a>
        </li>
        <li><a href="/index/Travelroute/form1.html"><i class="feather-bar-chart"></i> <span>行程信息</span></a>
        </li>
      </ul>
    </div>
  </div>
</div>
			<!-- /Sidebar -->

			<!-- Page Wrapper -->
			<div class="page-wrapper">
				<div class="content container-fluid">
					<div class="card">
						<div class="card-header no-border">
							<h4 class="card-title float-left">导游信息</h4>
							<div class="float-right">
								<div class="top-nav-search" style="margin-left: 10%;">
								<form action="/Index/index/index" method="get" autocomplete="off">
									<input type="text" name="name" value="<?php echo htmlentities((isset($name) && ($name !== '')?$name:'')); ?>" class="form-control" placeholder="Search here">
									<button style="" class="btn" type="submit"><i class="fa fa-search"></i>
									</button>
								</form>
							</div>
							</div>

						</div>

						<div class="card-body">

							<div class="table-responsive">

								<table class="table mb-0">
									<thead>
										<tr>
											<th>ID</th>
											<th>姓名</th>
											<th>手机</th>
											<th>导游证件号</th>
											<th>公司</th>
											<th>注册时间</th>
											<th>状态</th>
											<th class="text-right">操作</th>
										</tr>
									</thead>
									<tbody>
									<?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vv): $mod = ($i % 2 );++$i;?>
										<tr>
											<td><?php echo htmlentities($vv['id']); ?></td>
											<td><?php echo htmlentities($vv['dyname']); ?></td>
											<td><?php echo htmlentities($vv['dyiphone']); ?></td>
											<td><?php echo htmlentities($vv['zhengjian']); ?></td>
											<td><?php echo htmlentities($vv['company']); ?></td>
											<td><?php echo htmlentities(date("Y-m-d H-i-s",!is_numeric($vv['dyaddtime'])? strtotime($vv['dyaddtime']) : $vv['dyaddtime'])); ?></td>
											<td class="text-success"><?php if($vv['stutic'] == 1): ?>启用<?php else: ?>停用<?php endif; ?></td>
											<td class="text-right">
												<a href="/Index/index/edit.html?id=<?php echo htmlentities($vv['id']); ?>" class="btn btn-sm btn-white text-success mr-2"><i class="far fa-edit mr-1"></i> 修改</a>
												<a href="javascript:void(0);"  onclick="member_del(this,'<?php echo htmlentities($vv['id']); ?>');"  class="btn btn-sm btn-white text-danger mr-2"><i class="far fa-trash-alt mr-1"></i>删除</a>
											</td>
										</tr>
									<?php endforeach; endif; else: echo "" ;endif; ?>
									</tbody>
								</table>
							</div>
							<div class="row" style="margin-left: 85%;height: 45px;width:100%;">
								<div class="btn btn-default col-xs-12 col-sm-6 col-md-8">
									<?php echo $list; ?>
								</div>
							</div>

						</div>
					</div>
				</div>
			</div>
			<!-- /Page Wrapper -->

			<!-- Notification -->
			<!-- /Notification -->
		</div>
		<!-- /Main Wrapper -->
		<script>
			function member_del(obj, id){
				$.ajax({
					url:'del',
					type: 'get',
					data: {'id':id},
					dataType: 'json',
					success:function(res){
						if(res.code == 1){
							if(success){
								success(res);
							}else{
								console.log('success', res);
							}
						}else{
							if(fail){
								fail(res);
							}else{
								console.log('成功但响应出错', res)
							}
						}
					},

				})
			}
		</script>
		<!-- jQuery -->
		<script src="/static/index/assets/js/jquery-3.6.0.min.js"></script>

		<!-- Bootstrap Core JS -->
		<script src="/static/index/assets/js/bootstrap.bundle.min.js"></script>

		<!-- Slimscroll JS -->
		<script src="/static/index/assets/plugins/slimscroll/jquery.slimscroll.min.js"></script>

		<!-- Chart JS -->
		<script src="/static/index/assets/plugins/apexchart/apexcharts.min.js"></script>
		<script src="/static/index/assets/plugins/apexchart/dsh-apaxcharts.js"></script>

		<!-- calendar Js -->
		<script src="/static/index/assets/plugins/simple-calendar/jquery.simple-calendar.js"></script>
		<script src="/static/index/assets/js/calander.js"></script>

		<!-- Custom JS -->
		<script  src="/static/index/assets/js/script.js"></script>
	</body>
</html>
